<template>
  <div :class="wrpCls">
    <avatar-dropdown :menu="showMenu" :current-user="currentUser" :class="prefixCls" />
    <!-- 已移除语言切换组件 -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import AvatarDropdown from './AvatarDropdown'
// 移除 SelectLang 导入

export default {
  name: 'RightContent',
  components: {
    AvatarDropdown,
    // 移除 SelectLang 组件注册
  },
  props: {
    prefixCls: {
      type: String,
      default: 'ant-pro-global-header-index-action',
    },
    isMobile: {
      type: Boolean,
      default: () => false,
    },
    topMenu: {
      type: Boolean,
      required: true,
    },
    theme: {
      type: String,
      required: true,
    },
  },
  data() {
    return {
      showMenu: true,
    }
  },
  computed: {
    ...mapGetters(['nickname', 'avatar']),
    currentUser() {
      return {
        name: this.nickname,
        avatar: this.avatar,
      }
    },
    wrpCls() {
      return {
        'ant-pro-global-header-index-right': true,
        [`ant-pro-global-header-index-${this.isMobile || !this.topMenu ? 'light' : this.theme}`]: true,
      }
    },
  },
  mounted() {
    console.log('RightContent mounted', this.$store.state)
  },
}
</script>
